package com.he.principles.LSP.before;

/**
 * @description: T正方形
 * @Author: HCL
 * @Date: 2024/8/21 17:15
 */
public class Square extends Rectangle{

    @Override
    public void setLength(Double length) {
        super.setLength(length);
        super.setWidth(length);
    }

    @Override
    public void setWidth(Double width) {
        super.setLength(width);
        super.setWidth(width);
    }
}
